package com.ruoyi.common.core.constant;

/**
 * 权限相关通用常量
 *
 * @author ruoyi
 */
public class SecurityConstants {

  /**
   * 用户ID字段
   */
  public static final String DETAILS_USER_ID = "user_id";

  /**
   * 用户名字段
   */
  public static final String DETAILS_USERNAME = "username";
  /**
   * 用户类型
   */
  public static final String DETAILS_USERTYPE = "usertype";

  /**
   * 授权信息字段
   */
  public static final String AUTHORIZATION_HEADER = "Authorization";

  /**
   * 请求来源
   */
  public static final String FROM_SOURCE = "from-source";

  /**
   * 内部请求
   */
  public static final String INNER = "inner";

  /**
   * 用户标识
   */
  public static final String USER_KEY = "user_key";

  /**
   * 登录用户
   */
  public static final String LOGIN_USER = "login_user";

  public static final String API_LOGIN_USER = "api_login_user";

  /**
   * 角色权限
   */
  public static final String ROLE_PERMISSION = "role_permission";
  /**
   * 续签时间
   */
  public static final String ALLOW_TOKEN_ACCESS_TIME = "allow_token_access";
  /**
   * 续签限制时间
   */
  public static final String ALLOW_TOKEN_REFRESH_TIME = "allow_token_refresh";
  /**
   * managerKey
   */
  public static final String HEADER_MANAGER_KEY = "X_manager_key";
}
